package com.mycompany.user.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mycompany.user.entity.User;
import com.mycompany.user.mapper.UserMapper;

@Repository("userDao")
public class UserDaoImpl implements UserDao{

	@Autowired
	private UserMapper userMapper;

	public void insertUser(User user) {
		userMapper.insertUser(user);
	}

	public User selectByParam(Map<String,Object> paMap){
		return userMapper.selectByParam(paMap);
	}

	public List<User> selectAllByParam(Map<String,Object> paMap){
		return userMapper.selectAllByParam(paMap);
	}
}
